package standard;

import java.util.ArrayList;

public class DemoForEach {

	public static void main(String[] args) {
		
		Integer in [] = {5,5,4,54,5,4,4,4,5,4,8,6};
		
		for (Integer i : in) {
			System.out.println(i);
		}
		
		
		ArrayList<String> s = new ArrayList<String>();
		s.add("Marko");
		s.add("Janko");
		s.add("Mirko");
		
		for (String str : s) {
			System.out.println(str);
		}
		String s1 = "Janko";
		s.remove(s1);
		
		for (String str : s) {
			System.out.println(str);
		}
		
	
		for (int j = 0; j < s.size(); j++) {
			System.out.println(j);
		}
		
	}
	
}
